home *** CD-ROM | disk | FTP | other *** search
/ Shareware Grab Bag / Shareware Grab Bag.iso / 015 / memprnt.arc / MPMPRINT.DOC < prev    next >
Text File  |  1985-09-05  |  36KB  |  718 lines

  1.          
  2.          
  3.                                ╔╦╗╔═╗╔╦╗
  4.                                ║║║╠═╝║║║ - print
  5.                                   ║
  6.                                    (C) 1985
  7.          
  8.                           ╔╦╗╔═╗╔╦╗
  9.                           ║║║╠═╝║║║ enterprises, inc.
  10.                              ║
  11.                  
  12.                           306 Park Avenue
  13.                           Wilmette, Illinois  60091
  14.  
  15.  
  16.  
  17.  
  18.          ╔╦╗╔═╗╔╦╗
  19.          ║║║╠═╝║║║ - print  is a utility which allows any Epson 
  20.             ║               printer to print IBM graphics characters
  21.                             in a way that is completely transparent to
  22.                             you (the user) or any program or operation
  23.                             on the computer (including PrintScreen).
  24.  
  25.                             When it is installed, MPM-print becomes 
  26.                             memory-resident, that is, it stays active
  27.                             in a small portion of your computer's 
  28.                             memory until your computer is turned off 
  29.                             or "rebooted".
  30.  
  31.                             After it is installed, MPM-print allows an 
  32.                             Epson printer to print 240 of the 255 
  33.                             graphics characters that IBM PC monitors 
  34.                             can display (which is more IBM characters 
  35.                             than even the IBM Graphics Printer can 
  36.                             print).  
  37.         
  38.                             MPM-print is an ideal addition to your 
  39.                             "AUTOEXEC.BAT" file; if it is included, it 
  40.                             will be installed in memory whenever you 
  41.                             restart your computer, and will then 
  42.                             always allow IBM's special characters to 
  43.                             print on your printer.  
  44.  
  45.                             The system will work with Epson FX, MX 
  46.                             (with Graftrax Plus), and RX series 
  47.                             printers, AND with the IBM Graphics 
  48.                             Printer (which is a version of the Epson 
  49.                             MX printer).  MPM-print uses less than 
  50.                             3000 bytes of system memory when it is 
  51.                             installed, and will work with PC-DOS 
  52.                             versions 1.1 and above.  
  53.          
  54.          ╔╦╗╔═╗╔╦╗
  55.          ║║║╠═╝║║║ - print                                      Page 2
  56.             ║
  57.  
  58.  
  59.  
  60.          INSTALLATION       MPM-print is installed simply by typing
  61.          ▀▀▀▀▀▀▀▀▀▀▀▀       its name at the DOS prompt, i.e.
  62.  
  63.                             DOS prompt
  64.                             └───┬────┘
  65.                                 │
  66.                                 A>MPMprint <enter>
  67.                                     │         │
  68.                                ┌────┴─────┐   └─ carriage return or
  69.                                program name      enter key
  70.  
  71.                             MPM-print will then "attach" itself to 
  72.                             DOS, and will print the following message 
  73.                             to the screen: 
  74.          
  75.          
  76.                                     ╔╦╗╔═╗╔╦╗
  77.                                     ║║║╠═╝║║║ - print
  78.                                        ║
  79.                                         (C) 1985
  80.  
  81.          
  82.                                ╔╦╗╔═╗╔╦╗
  83.                                ║║║╠═╝║║║ enterprises, inc.
  84.                                   ║
  85.                  
  86.                                306 Park Avenue
  87.                                Wilmette, Illinois  60091
  88.  
  89.  
  90.  
  91.                             After it has been installed, MPM-print 
  92.                             cannot be re-installed (except in unusual 
  93.                             circumstances, see TECHNICAL NOTES below).  
  94.                             If you try to reinstall the system MPM-
  95.                             print will give you the following message: 
  96.  
  97.          
  98.                                     ╔╦╗╔═╗╔╦╗
  99.                                     ║║║╠═╝║║║ - print
  100.                                        ║
  101.  
  102.                                   is already installed
  103.          
  104.          ╔╦╗╔═╗╔╦╗
  105.          ║║║╠═╝║║║ - print                                      Page 3
  106.             ║
  107.                      
  108.          
  109.                                                         
  110.          USE                After it has been installed, MPM-print is
  111.          ▀▀▀                completely transparent both to you (the 
  112.                             user) and to programs running on your 
  113.                             computer.
  114.          
  115.                             MPM-print "reviews" each character that is 
  116.                             sent to the printer, and takes one of four 
  117.                             actions: 
  118.  
  119.                                1.  If the character is "shared" by 
  120.                                Epson and by the IBM monitors, it will 
  121.                                be printed normally.  Only the 
  122.                                "standard" ASCII characters, ranging 
  123.                                from the space (ASCII 32) to the ~ 
  124.                                (ASCII 126) are shared.  
  125.  
  126.                                2.  If the character is an Epson 
  127.                                control character, it will be passed 
  128.                                without change to the printer (see 
  129.                                Appendix B for a listing of all Epson 
  130.                                control codes).  
  131.  
  132.                                3.  If the character is an Escape 
  133.                                (ASCII 27), MPM-print will send the 
  134.                                Escape character AND the appropriate 
  135.                                number of following characters to the 
  136.                                printer without change (Epson printers 
  137.                                use "Escape sequences" to control a 
  138.                                wide variety of printing functions.  
  139.                                See Appendix B for a listing of Epson 
  140.                                escape sequences).  
  141.                             
  142.                                4.  Finally, if the character is one of 
  143.                                the 145 characters that are neither 
  144.                                "shared" nor printer control 
  145.                                characters, then MPM-print will 
  146.                                "translate" the character and print the 
  147.                                IBM monitor's version of that character 
  148.                                using the Epson printer's graphics 
  149.                                capability.  
  150.          
  151.          ╔╦╗╔═╗╔╦╗
  152.          ║║║╠═╝║║║ - print                                      Page 4
  153.             ║
  154.  
  155.  
  156.  
  157.          TESTING            Included with MPM-print are two versions 
  158.          ▀▀▀▀▀▀▀            of a testing program, TEST.COM and 
  159.                             TEST.PAS.  Written in TURBO Pascal, the 
  160.                             testing programs will "exercise" most of 
  161.                             the print commands available for the Epson 
  162.                             printers.
  163.          
  164.                             For each control code and escape sequence 
  165.                             (see Appendix B), the program will set the 
  166.                             printer's mode, then (if appropriate) it 
  167.                             will print the 240 non-control characters, 
  168.                             and finally will restore the printer to 
  169.                             its original mode.  
  170.  
  171.                             The purpose of the test is to verify that 
  172.                             MPM-print will properly transmit the 
  173.                             control codes/escape sequences to the 
  174.                             printer, and that it will properly print 
  175.                             the full 240 MPM-print character set after 
  176.                             setting the printer's mode.  
  177.          
  178.                             TEST.COM was compiled using TURBO Pascal 
  179.                             version 3.0, and will only run with DOS 
  180.                             2.0 or higher.  
  181.  
  182.                             The source code (TEST.PAS) is provided to 
  183.                             allow the user to study the use of the 
  184.                             Epson control codes and escape sequences, 
  185.                             and to convert the testing program to 
  186.                             other languages.  
  187.  
  188.                             The compiled version of TEST will take 20-
  189.                             25 minutes to run (it is limited by the 
  190.                             speed of the Epson printers), and will 
  191.                             print about seven pages.  
  192.          
  193.          ╔╦╗╔═╗╔╦╗
  194.          ║║║╠═╝║║║ - print                                      Page 5
  195.             ║
  196.                   
  197.  
  198.  
  199.          DISTRIBUTION       MPM-print is being distributed as
  200.          ▀▀▀▀▀▀▀▀▀▀▀▀       "user-supported software", with the
  201.                             following conditions:
  202.  
  203.                                MPM-print and its associated 
  204.                                documentation are the copyrighted 
  205.                                property of MPM Enterprises, Inc.  
  206.          
  207.                                We grant NON-COMMERCIAL users the right 
  208.                                to use, copy and share MPM-print.  
  209.            
  210.                                Any distribution of MPM-print must 
  211.                                contain the unaltered versions of the 
  212.                                program itself and all associated 
  213.                                documentation: 
  214.  
  215.                                        MPMprint.com
  216.                                        MPMprint.doc
  217.                                        MPMprint.prt
  218.                                        READ    .ME
  219.                                        TEST    .PAS
  220.                                        TEST    .COM
  221.          
  222.                                MPM-print may NOT be sold or 
  223.                                distributed for profit.  
  224.  
  225.                                Users are encouraged to register their 
  226.                                use with MPM Enterprises, Inc.  A $10 
  227.                                contribution to encourage our future 
  228.                                developments is suggested.  Registered 
  229.                                users will be notified of updates, 
  230.                                enhancements, and new products from
  231.                                MPM Enterprises, Inc.
  232.  
  233.                                Commercial use WITHOUT a $10 per copy
  234.                                registration fee is prohibited.  Site 
  235.                                licenses are available.  
  236.  
  237.  
  238.                             MPM-print is provided on an "as-is" basis,
  239.                             and no warranty is expressed or implied.  
  240.                             In no event shall MPM Enterprises, Inc., be
  241.                             liable for any commercial or non-
  242.                             commercial damage arising from the use of 
  243.                             MPM-print.  
  244.          
  245.          ╔╦╗╔═╗╔╦╗
  246.          ║║║╠═╝║║║ - print                                      Page 6
  247.             ║
  248.  
  249.          
  250.  
  251.          TECHNICAL NOTES    SPEED
  252.          ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀    ═════
  253.                             MPM-print uses the graphics printing 
  254.                             capabilities of the Epson printers to 
  255.                             produce the 145 IBM characters that the 
  256.                             Epson printers normally don't print.
  257.  
  258.                             Printing using the graphics mode requires 
  259.                             more information and effort on the part of 
  260.                             the printer, so the 145 non-Epson 
  261.                             characters take longer to print.  (This is 
  262.                             why the 'TEST' program takes so long to 
  263.                             print 7 pages of output).  "Normal" text 
  264.                             is printed at the normal rate of speed.  
  265.          
  266.                             If your text makes use of a large number 
  267.                             of the IBM's "special" characters, the 
  268.                             text printing will be significantly slower 
  269.                             than it would have been if you wanted to 
  270.                             look at the funny characters that the 
  271.                             Epson uses in place of the IBM characters.  
  272.          
  273.                             If, however, your text contains relatively 
  274.                             few "special" characters, then printing 
  275.                             will be virtually as fast as it would be 
  276.                             WITHOUT MPM-print installed.  
  277.  
  278.                             LINE SPACING
  279.                             ════════════
  280.                             Because of limitations with certain Epson 
  281.                             printers, the graphics characters printed 
  282.                             by MPM-print are 8 dots high.  Therefore, 
  283.                             to get any of the vertical bar characters 
  284.                             (used for drawing boxes, or for the MPM 
  285.                             logo, for example) to print contiguously 
  286.                             (without any vertical white space between 
  287.                             them), the printer must be set to print 8 
  288.                             dots per line.  This can be done by 
  289.                             sending the escape sequence ESCAPE 65 8 to 
  290.                             the printer (see the listing of escape 
  291.                             code sequences in Appendix B).  
  292.  
  293.                             CHARACTER SIZES
  294.                             ═══════════════
  295.                             The IBM characters that MPM-print produces 
  296.                             are printed in the normal (pica) mode.  
  297.                             Although MPM-print will allow a program to 
  298.                             set the printer to any mode (expanded, 
  299.                             compressed, etc.), the IBM characters will 
  300.                             still be printed in the pica mode.  
  301.          
  302.          ╔╦╗╔═╗╔╦╗
  303.          ║║║╠═╝║║║ - print                                      Page 7
  304.             ║
  305.  
  306.          
  307.  
  308.          TECHNICAL NOTES    EPSON CONTROL CODES
  309.          ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀    ═══════════════════
  310.                             Epson printers use certain one-byte codes 
  311.                             (ranging from ASCII 7 to 27) to control 
  312.                             some of the printers' features (see 
  313.                             Appendix B).  Each feature can be 
  314.                             activated by sending EITHER the code OR 
  315.                             the code+128 to the printer (for example, 
  316.                             both ASCII 7 and ASCII 135 would "beep" 
  317.                             the printer's speaker).  We have chosen to 
  318.                             print IBM characters for all ASCII codes 
  319.                             above 127, since printer control codes are 
  320.                             already provided by ASCII characters 7-27.
  321.  
  322.                             We have also chosen to print the IBM 
  323.                             character  (ASCII 127) instead of the 
  324.                             "delete" code for the Epson printers.  The 
  325.                             "delete" code deletes the last character 
  326.                             in the Epson printer's line buffer; since 
  327.                             it is rarely used, we chose to print the 
  328.                             IBM character instead.  
  329.  
  330.                             All other control codes and escape 
  331.                             sequences (see Appendix B) are passed 
  332.                             directly to the printer.  
  333.         
  334.                             REMOVING (de-installing?) MPM-print
  335.                             ═══════════════════════════════════
  336.                             Reboot your computer (using the Ctrl-Alt-
  337.                             Del keys simultaneously), and DON'T run 
  338.                             MPM-print after rebooting.  
  339.  
  340.                             REINSTALLING MPM-print (or trying to)
  341.                             ═════════════════════════════════════
  342.                             MPM-print works by taking control of
  343.                             IBM's ROM BIOS interrupt 17h (Printer 
  344.                             I/O). When you try to re-run MPM-print,
  345.                             it checks the ROM BIOS interrupt to see
  346.                             if it has already been installed.  If it
  347.                             has, MPM-print will notify you of that 
  348.                             fact.
  349.  
  350.                             A problem can occur, however, if you 
  351.                             install some other piece of memory-
  352.                             resident software (such as a print 
  353.                             spooler; please read the following 
  354.                             section) that also takes control of 
  355.                             interrupt 17h AFTER MPM-print has been 
  356.                             installed.  If this is the case, and IF 
  357.                             you try to re-run MPM-print, it will NOT 
  358.                             find a copy of itself when it checks, and 
  359.                             it WILL proceed to install itself again.  
  360.          
  361.          ╔╦╗╔═╗╔╦╗
  362.          ║║║╠═╝║║║ - print                                      Page 8
  363.             ║
  364.  
  365.          
  366.  
  367.          TECHNICAL NOTES    PRINT SPOOLERS
  368.          ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀    ══════════════
  369.                             Print spoolers are memory-resident 
  370.                             programs that "reserve" a portion of 
  371.                             memory to buffer information that is sent 
  372.                             to the printer.
  373.  
  374.                             Ideally, MPM-print should be installed 
  375.                             BEFORE a print spooler.  This would allow 
  376.                             your print spooler to hold characters as 
  377.                             single bytes, and would let MPM-print 
  378.                             handle sending the special characters to 
  379.                             the printer in graphics mode.  
  380.  
  381.                             HOWEVER, some print spoolers (notably 
  382.                             AST's SUPERSPL) will ignore the existence 
  383.                             of MPM-print IF they are installed after 
  384.                             MPM-print.  If you are using one of those 
  385.                             spoolers, then please install MPM-print 
  386.                             AFTER installing your print spooler.  
  387.  
  388.                             COMPATIBILITY
  389.                             ═════════════
  390.                             We have not been able to test MPM-print 
  391.                             with every available piece of software.  
  392.                             We HAVE, however, tested it with: 
  393.  
  394.                                  IBM PC-DOS versions 1.1,2.1,3.0,3.1  
  395.                                  PrintGraph/Lotus 1-2-3
  396.                                  Graphics screen dumps (as long as the 
  397.                                     DOS utility GRAPHICS.COM is also 
  398.                                     installed)
  399.                                  Sidekick (from Borland International)
  400.                                  PC-WINDOW (a user supported, memory-
  401.                                     resident system utility from: 
  402.                                        Cannon/Mill Software, PO Box 10047,
  403.                                        Columbia, MO  65205)
  404.                                  The following user supported "quality 
  405.                                  printing" systems:
  406.                                     LQ-PRINT (from: 
  407.                                        Centar Technology, PO Box 60577, 
  408.                                        Sunnyvale, CA  94088) 
  409.                                     BRADFORD (from:
  410.                                        Aaron Contorer, 1521 Central Ave.,
  411.                                        Deerfield, IL  60015)
  412.                                     PC-FONT (v 2.04, from:
  413.                                        SJL, 4473 Marlborough, #5
  414.                                        San Diego, CA 92116)
  415.  
  416.                             If you have compatibility problems with 
  417.                             other memory-resident programs, the first 
  418.                             thing to try is changing the order in 
  419.                             which the programs are loaded into memory.  
  420.                             If you discover compatibility problems 
  421.                             that you are unable to solve, please let 
  422.                             us know about them.
  423.          
  424.          ╔╦╗╔═╗╔╦╗
  425.          ║║║╠═╝║║║ - print                                      Page 9
  426.             ║
  427.          
  428.  
  429.  
  430.  
  431.  
  432.  
  433.          ▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌
  434.  
  435.           
  436.                     ╔╦╗╔═╗╔╦╗
  437.          MPM-print, ║║║╠═╝║║║ - print, and its associated documentation 
  438.                        ║
  439.          
  440.          are copyrighted (C), 1985, MPM Enterprises, Inc.
  441.  
  442.  
  443.  
  444.          Please direct all comments, registrations and contributions 
  445.          to:
  446.          
  447.                           ╔╦╗╔═╗╔╦╗
  448.                           ║║║╠═╝║║║ enterprises, inc.
  449.                              ║
  450.                  
  451.                           306 Park Avenue
  452.                           Wilmette, Illinois  60091
  453.  
  454.  
  455.  
  456.          ▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌▌
  457.          
  458.          ╔╦╗╔═╗╔╦╗
  459.          ║║║╠═╝║║║ - print                               APPENDIX A-1
  460.             ║
  461.  
  462.          
  463.                                    APPENDIX A
  464.                                    ▀▀▀▀▀▀▀▀▀▀
  465.  
  466.                                   ASCII CODES
  467.                                   ═══════════
  468.  
  469.          Decimal
  470.              │ Hexidecimal
  471.              │   │   Character or function
  472.              │   │   │
  473.              0  00           32  20           64  40   @       96  60   `
  474.              1  01          33  21   !       65  41   A       97  61   a
  475.              2  02          34  22   "       66  42   B       98  62   b
  476.              3  03          35  23   #       67  43   C       99  63   c
  477.              4  04          36  24   $       68  44   D      100  64   d
  478.              5  05          37  25   %       69  45   E      101  65   e
  479.              6  06          38  26   &       70  46   F      102  66   f
  480.              7  07 BEL       39  27   '       71  47   G      103  67   g
  481.              8  08  BS       40  28   (       72  48   H      104  68   h
  482.              9  09  HT       41  29   )       73  49   I      105  69   i
  483.             10  0A  LF       42  2A   *       74  4A   J      106  6A   j
  484.             11  0B  VT       43  2B   +       75  4B   K      107  6B   k
  485.             12  0C  FF       44  2C   ,       76  4C   L      108  6C   l
  486.             13  0D  CR       45  2D   -       77  4D   M      109  6D   m
  487.             14  0E  SO       46  2E   .       78  4E   N      110  6E   n
  488.             15  0F  SI       47  2F   /       79  4F   O      111  6F   o
  489.             16  10          48  30   0       80  50   P      112  70   p
  490.             17  11 DC1       49  31   1       81  51   Q      113  71   q
  491.             18  12 DC2       50  32   2       82  52   R      114  72   r
  492.             19  13 DC3       51  33   3       83  53   S      115  73   s
  493.             20  14 DC4       52  34   4       84  54   T      116  74   t
  494.             21  15          53  35   5       85  55   U      117  75   u
  495.             22  16          54  36   6       86  56   V      118  76   v
  496.             23  17          55  37   7       87  57   W      119  77   w
  497.             24  18 CAN       56  38   8       88  58   X      120  78   x
  498.             25  19          57  39   9       89  59   Y      121  79   y
  499.             26  1A           58  3A   :       90  5A   Z      122  7A   z
  500.             27  1B ESC       59  3B   ;       91  5B   [      123  7B   {
  501.             28  1C          60  3C   <       92  5C   \      124  7C   |
  502.             29  1D          61  3D   =       93  5D   ]      125  7D   }
  503.             30  1E          62  3E   >       94  5E   ^      126  7E   ~
  504.             31  1F          63  3F   ?       95  5F   _      127  7F   
  505.          
  506.          ╔╦╗╔═╗╔╦╗
  507.          ║║║╠═╝║║║ - print                               APPENDIX A-2
  508.             ║
  509.  
  510.  
  511.                              APPENDIX A (continued)
  512.                              ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
  513.  
  514.                                   ASCII CODES
  515.                                   ═══════════
  516.  
  517.          Decimal
  518.              │ Hexidecimal
  519.              │   │   Character or function
  520.              │   │   │
  521.            128  80   Ç      160  A0   á      192  C0   └      224  E0   α
  522.            129  81   ü      161  A1   í      193  C1   ┴      225  E1   ß
  523.            130  82   é      162  A2   ó      194  C2   ┬      226  E2   Γ
  524.            131  83   â      163  A3   ú      195  C3   ├      227  E3   π
  525.            132  84   ä      164  A4   ñ      196  C4   ─      228  E4   Σ
  526.            133  85   à      165  A5   Ñ      197  C5   ┼      229  E5   σ
  527.            134  86   å      166  A6   ª      198  C6   ╞      230  E6   µ
  528.            135  87   ç      167  A7   º      199  C7   ╟      231  E7   τ
  529.            136  88   ê      168  A8   ¿      200  C8   ╚      232  E8   Φ
  530.            137  89   ë      169  A9   ⌐      201  C9   ╔      233  E9   Θ
  531.            138  8A   è      170  AA   ¬      202  CA   ╩      234  EA   Ω
  532.            139  8B   ï      171  AB   ½      203  CB   ╦      235  EB   δ
  533.            140  8C   î      172  AC   ¼      204  CC   ╠      236  EC   ∞
  534.            141  8D   ì      173  AD   ¡      205  CD   ═      237  ED   φ
  535.            142  8E   Ä      174  AE   «      206  CE   ╬      238  EE   ε
  536.            143  8F   Å      175  AF   »      207  CF   ╧      239  EF   ∩
  537.            144  90   É      176  B0   ░      208  D0   ╨      240  F0   ≡
  538.            145  91   æ      177  B1   ▒      209  D1   ╤      241  F1   ±
  539.            146  92   Æ      178  B2   ▓      210  D2   ╥      242  F2   ≥
  540.            147  93   ô      179  B3   │      211  D3   ╙      243  F3   ≤
  541.            148  94   ö      180  B4   ┤      212  D4   ╘      244  F4   ⌠
  542.            149  95   ò      181  B5   ╡      213  D5   ╒      245  F5   ⌡
  543.            150  96   û      182  B6   ╢      214  D6   ╓      246  F6   ÷
  544.            151  97   ù      183  B7   ╖      215  D7   ╫      247  F7   ≈
  545.            152  98   ÿ      184  B8   ╕      216  D8   ╪      248  F8   °
  546.            153  99   Ö      185  B9   ╣      217  D9   ┘      249  F9   ∙
  547.            154  9A   Ü      186  BA   ║      218  DA   ┌      250  FA   ·
  548.            155  9B   ¢      187  BB   ╗      219  DB   █      251  FB   √
  549.            156  9C   £      188  BC   ╝      220  DC   ▄      252  FC   ⁿ
  550.            157  9D   ¥      189  BD   ╜      221  DD   ▌      253  FD   ²
  551.            158  9E   ₧      190  BE   ╛      222  DE   ▐      254  FE   ■
  552.            159  9F   ƒ      191  BF   ┐      223  DF   ▀      255  FF    
  553.          
  554.          ╔╦╗╔═╗╔╦╗
  555.          ║║║╠═╝║║║ - print                               APPENDIX B-1
  556.             ║
  557.          
  558.  
  559.                                    APPENDIX B
  560.                                    ▀▀▀▀▀▀▀▀▀▀
  561.  
  562.                     EPSON CONTROL CODES AND ESCAPE SEQUENCES
  563.                     ════════════════════════════════════════
  564.  
  565.                               EPSON control codes
  566.  
  567.          The following codes, when sent individually to the 
  568.          appropriate printer, will cause the described action to be 
  569.          taken.  
  570.  
  571.          ASCII     chars
  572.           code use after   action
  573.          ───────────────────────────────────────────────────────────────
  574.             7  fmr   0     bell
  575.             8  fmr   0     backspace
  576.             9  fmr   0     horizontal tab
  577.            10  fmr   0     line feed
  578.            11  fmr   0     vertical tab
  579.            12  fmr   0     form feed
  580.            13  fmr   0     carriage return
  581.            14  fmr   0     shift out (expanded mode on)
  582.            15  fmr   0     shift in (compressed mode on)
  583.            17  f     0     printer in active condition
  584.            18  fmr   0     turns compressed mode off
  585.            19  f     0     printer inactive until char(17) sent
  586.            20  fmr   0     turns expanded mode off
  587.            24  f     0     cancels all text in the printer's buffer
  588.            27  fmr   -     escape
  589.           127  fmr   0     deletes the last character in the printer's 
  590.                            line buffer
  591.  
  592.  
  593.          NOTES:
  594.              use   : designates the printers that make use of the 
  595.                      particular code
  596.                        f : FX series
  597.                        m : MX with Graftrax Plus, IBM Graphics printer
  598.                        r : RX series
  599.  
  600.              chars
  601.              after : number of characters the Epson printer expects
  602.                      AFTER the escape + character sequence is started.
  603.                      An asterisk (*) means that the number of 
  604.                      characters is context-specific.
  605.          
  606.          ╔╦╗╔═╗╔╦╗
  607.          ║║║╠═╝║║║ - print                               APPENDIX B-2
  608.             ║
  609.  
  610.  
  611.                                EPSON escape codes
  612.  
  613.          The escape char (ASCII 27) followed by one of the below ASCII 
  614.          codes followed by the appropriate number of characters will 
  615.          cause the described action to be taken.  
  616.  
  617.          ASCII     chars
  618.           code use after   action
  619.          ───────────────────────────────────────────────────────────────
  620.             14  f     0     shift out (expanded mode on)
  621.             15  f     0     shift in (compressed mode on)
  622.             33  f     1     master print mode select (selects 16 unique
  623.                             print mode combinations)
  624.             35  fm    0     accepts 8th bit 'as is' from the computer
  625.             37  f     2     activates either ROM or download character set
  626.             38  f     *     downloads one or more characters
  627.             42  f r   *     turns graphic mode on; followed by three
  628.                             numbers, m,n1,n2 and n data codes where
  629.                             n=n1+256*n2
  630.             45  fmr   1     turns underline mode on and off
  631.             47  f     1     selects a vertical tab channel
  632.             48  fmr   0     sets line spacing to 1/8 inch (9 dots)
  633.             49  fmr   0     sets line spacing to 7/72 inch (7 dots)
  634.             50  fmr   0     sets line spacing to default 1/6 inch
  635.                             (12 dots)
  636.             51  fmr   1     sets line spacing to n/216 inch
  637.                             (1/216 inches = 1/3 dot)
  638.             52  fmr   0     turns the italic character set on
  639.             53  fmr   0     turns the italic character set off
  640.             54  f     0     enables printing the symbols stored in
  641.                             ASCII codes 128 - 159
  642.             55  f     0     causes ASCII codes 128 - 159 to print as
  643.                             control codes
  644.             56  fmr   0     disables 'paper out' sensor
  645.             57  fmr   0     enables 'paper out' sensor
  646.             58  f     3     copies character set from ROM to the 
  647.                             download RAM
  648.             60  fmr   0     turns unidirectional mode for only one line
  649.             61  fm    0     sets the 8th bit to 0 (limits printing to
  650.                             characters in the range of ASCII 0 - 127)
  651.             62  fm    0     sets the 8th bit to 1 (limits printing to
  652.                             characters in the range of ASCII 128 - 255)
  653.             64  fmr   0     master reset code
  654.             65  fmr   1     sets line spacing to n/72 inch (n dots)
  655.             66  f     *     sets up to 16 vertical tabs, is followed
  656.                             by n numbers where the last number is less
  657.                             than its predecessor
  658.          
  659.          ╔╦╗╔═╗╔╦╗
  660.          ║║║╠═╝║║║ - print                               APPENDIX B-3
  661.             ║
  662.          
  663.  
  664.                          EPSON escape codes (continued)
  665.  
  666.          ASCII     chars
  667.           code use after   action
  668.          ───────────────────────────────────────────────────────────────
  669.             67  fmr   *     if the next number is nonzero, sets form
  670.                             length to n lines
  671.                             if the next number is zero, then takes the
  672.                             following number and sets the form length
  673.                             to n inches
  674.             68  fm    *     sets up to 32 horizontal tabs, is followed 
  675.                             by n numbers where the last number is less 
  676.                             than its predecessor
  677.             69  fmr   0     turns emphasized mode on
  678.             70  fmr   0     turns emphasized mode off
  679.             71  fmr   0     turns double strike mode on
  680.             72  fmr   0     turns double strike mode off
  681.             73  f     1     enables/disables printing of non-control
  682.                             characters stored in ASCII 0 - 31
  683.             74  fmr   1     forces an immediate line feed of n/216 inches
  684.             75  fmr   *     normal graphics mode, followed by n1 & n2, 
  685.                             and then n data numbers where n=n1+256*n2
  686.             76  fmr   *     low-speed double-density graphic mode, same 
  687.                             logic as for code #75
  688.             77  f r   0     turns elite mode on
  689.             78  fmr   1     sets skip-over-perforation to n lines
  690.             79  fmr   0     turns skip-over-perforation off
  691.             80  f r   0     turns elite mode off
  692.             81  fmr   1     sets the column width  (right margin)
  693.             82  f r   1     selects an international character set
  694.             83  fmr   1     turns script mode on (to either
  695.                             super- or subscript)
  696.             84  fmr   0     turns script mode off
  697.             85  fmr   1     turns unidirectional mode on/off
  698.             87  fmr   1     turns expanded mode on/off
  699.             89  f r   *     high-speed double-density graphics, same
  700.                             logic as for code #75
  701.             90  f r   *     quadruple density graphics mode; followed by
  702.                             n1 & n2 and n data numbers where n=n1+256*n2
  703.             94  f     *     9-pin graphics mode, followed by d, n1 & n2 and
  704.                             2n data numbers where n=n1+256*n2
  705.             98  f     1     sets vertical tab for channel n
  706.            101    r   2     sets horizontal and vertical tab increments
  707.            102    r   2     prints spaces or line feeds without carriage 
  708.                             returns
  709.            105  f     1     turns immediate mode on/off
  710.            106  f     1     causes immediate reverse line feed of n/216 inch
  711.            108  f r   1     sets left margin to n characters
  712.            109    r   1     allows graphics characters at ASCII 128-159
  713.                             to print
  714.            112  f     1     turns proportional mode off/on
  715.            115  f r   1     turns half-speed mode on/off
  716.          
  717.          
  718.